import time

import requests

def get_ip():

    url = 'http://18551441704.user.xiecaiyun.com/api/proxies?action=getJSON&key=NPC737E4D7&count=200&word=&rand=false&norepeat=true&detail=false&ltime=&idshow=false'
    response = requests.get(url)

    if response.status_code == 200:
        data = response.json()
        result=data.get('result')

        return result

if __name__ == '__main__':
    result=get_ip()
    ip = result[0].get('ip')
    port = result[0].get('port')
    print(result)
    print(len(result))
